package com.spring.configaop;

import org.aspectj.lang.JoinPoint;

public class AopAspect {

	public void before(JoinPoint jp	){
		String method = jp.getSignature().getName();
		System.out.println("before "+method );
	}
	
	public void after(JoinPoint jp	){
		String method = jp.getSignature().getName();
		System.out.println("after "+method );
	}
	
	public void afterThrowing(JoinPoint jp	,Exception ex){
		String method = jp.getSignature().getName();
		System.out.println("afterThrowing "+method +"   e:"+ex.getMessage());
	}
	
	
}
